/*
 * @(#)attachmentServiceImpl.java 2013-4-10 ����01:36:55 Order
 */
package com.dingtalk.dingbotmgr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.dingtalk.dingbotmgr.dao.BaseDao;
import com.dingtalk.dingbotmgr.dao.AttachmentDao;
import com.dingtalk.dingbotmgr.model.Attachment;
import com.dingtalk.dingbotmgr.model.Project;
import com.dingtalk.dingbotmgr.service.AttachmentService;
import org.springframework.stereotype.Component;

/**
 * attachmentServiceImpl
 *
 * @author wang
 * @version 1.0
 */
@Component("attachmentService")
public class AttachmentServiceImpl extends BaseServiceImpl<Attachment> implements AttachmentService {

    @Resource(name = "attachmentDao")
    private AttachmentDao attachmentDao;

    @Override
    protected BaseDao<Attachment> getBaseDao() {
        return attachmentDao;
    }

    @Override
    public List<Attachment> listByProject(Project project) {
        return attachmentDao.listByProject(project);
    }
}
